package com.maywide.jdp.system.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.maywide.jdp.system.entities.Domain;

/**
 * 数据区域管理Service接口
 * 
 * @author luoyang
 * @version 1.0
 * @since JDK1.6
 */
public interface DomainService extends LockedService,MovedService {

	/**
	 * 新增数据区域
	 * 
	 * @param dataSection
	 *            数据区域对象
	 * @param request
	 *            HttpServletRequest对象
	 * @return Domain 新增后的对象
	 */
	public Domain insert(Domain dataSection, HttpServletRequest request,
			HttpServletResponse response, HttpSession session)
			throws Exception;

	/**
	 * 修改数据区域
	 * 
	 * @param dataSectionVO
	 *            数据区域对象
	 * @param request
	 *            HttpServletRequest对象
	 * @return Domain 修改后的对象
	 */
	public Domain update(Domain dataSectionVO, HttpServletRequest request,
			HttpServletResponse response, HttpSession session)
			throws Exception;

	/**
	 * 读取数据区域
	 * 
	 * @param id
	 *            数据区域ID
	 * @param request
	 *            HttpServletRequest对象
	 * @return Domain 读取的数据区域对象
	 */
	public Domain load(String id, HttpServletRequest request,
			HttpServletResponse response, HttpSession session)
			throws Exception;
}
